package com.yxx.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yxx.entity.Talk;
import com.yxx.entityModel.vo.query.PageQuery;
import com.yxx.entityModel.vo.query.TalkQuery;
import com.yxx.entityModel.vo.response.TalkBackInfoResponse;
import com.yxx.entityModel.vo.response.TalkBackResponse;
import com.yxx.entityModel.vo.response.TalkResponse;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author yuxiangxun
 * @date 2025/2/9
 * @apiNote
 */
@Repository
public interface TalkMapper extends BaseMapper<Talk> {
    /**
     * 查看后台说说列表
     * @param talkQuery
     * @return
     */
    List<TalkBackResponse> selectBackTalkList(@Param("param") TalkQuery talkQuery);

    /**
     * 根据id查询后台说说
     * @param talkId
     * @return
     */
    TalkBackInfoResponse selectTalkBackById(@Param("talkId") Integer talkId);

    /**
     * 查看说说列表
     * @param pageQuery
     * @return
     */
    List<TalkResponse> selectTalkList(@Param("param") PageQuery pageQuery);

    /**
     * 根据id查询说说
     * @param talkId
     * @return
     */
    TalkResponse selectTalkById(@Param("talkId")  Integer talkId);
}
